/*头文件包含*/
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

/*OLED屏幕的参数像素点配置，*/
#define SCREEN_WIDTH 128  // OLED display width, in pixels
#define SCREEN_HEIGHT 64  // OLED display height, in pixels

/*软件模拟SPI的接口*/
// Declaration for SSD1306 display connected using software SPI (default case):
#define OLED_MOSI 9                                    //数据线
#define OLED_CLK 10                                    //时钟线
#define OLED_DC 11                                     //数据/命令标志（0，命令；1，数据）
#define OLED_CS 12                                     //片选信号
#define OLED_RESET 13                                  //复位信号
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,  //这个是软件SPI的构造函数，创建了一个Adafruit_SSD1306类，类的名字叫做display
                         OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

/*下面是硬件SPI的接口，如果需要使用硬件SPI，则将下面取消注释，注释上面软件SPI接口即可*/
/* Comment out above, uncomment this block to use hardware SPI
#define OLED_DC     6
#define OLED_CS     7
#define OLED_RESET  8
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,     //这个是硬件SPI的构造函数，创建了一个Adafruit_SSD1306类，类的名字叫做display
  &SPI, OLED_DC, OLED_RESET, OLED_CS);
*/

/*
下面是一些比较基础的函数
display.clearDisplay();               //清除缓冲区函数，清屏函数
display.display();            //显示当前缓冲区内的内容
display.setTextSize(s);               //设置字体大小，参数S = 1/2/3....
display.setCursor(x,y);               //设置光标位置，参数为坐标
display.setTextColor(value);          //设置字体颜色，默认WHITE
display.steTextWrap();                //设置自动换行，参数为true或者false
display.drawBitmap(x,y,Bitmap,w,h,c); //x,y是图像的坐标，Bitmap为图像数据(可以是数组名，也可以是指针)，w,h,为图像的宽和高，c是颜色，

*/
static const unsigned char PROGMEM pic1[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,
0x00,0x00,0x00,0x03,0xFF,0x80,0x00,0x00,0x03,0xC1,0xC0,0x00,0x00,0x01,0x9C,0xE0,
0x00,0x00,0x03,0xFB,0x78,0x00,0x00,0x03,0x6B,0x7E,0x06,0x00,0xFF,0x63,0x7F,0xFE,
0x00,0xFF,0x9C,0x7F,0xFE,0x00,0x3F,0x9C,0xE3,0x80,0x00,0x00,0xE1,0xDD,0x80,0x00,
0x00,0x7F,0xBD,0x80,0x00,0x00,0x3F,0xBD,0x80,0x00,0x00,0x39,0xBD,0x80,0x00,0x00,
0x7F,0xBD,0x80,0x00,0x00,0x6F,0x7D,0x80,0x00,0x00,0x66,0xFD,0x80,0x00,0x00,0x66,
0xFB,0x80,0x00,0x01,0xE6,0xFB,0x00,0x00,0x01,0xC7,0x07,0x00,0x00,0x00,0xC3,0xFE,
0x00,0x00,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,
0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\1.bmp",0*/
};
static const unsigned char PROGMEM pic2[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x01,0x7F,0xC0,0x00,0x00,0x01,0xE1,
0xC0,0x00,0x00,0x00,0xCE,0xE0,0x00,0x00,0x01,0xFF,0x70,0x00,0x00,0x01,0xB5,0xFC,
0x00,0x00,0x01,0xB1,0xEE,0xFF,0x00,0x7F,0xBF,0xFF,0xFF,0x00,0x7F,0xDE,0x7F,0xFE,
0x00,0x00,0xE4,0xE3,0x80,0x00,0x00,0x7F,0xDD,0x80,0x00,0x00,0x3F,0xDD,0x80,0x00,
0x00,0x0F,0xDD,0x80,0x00,0x00,0x71,0xBD,0x80,0x00,0x00,0x7B,0xBD,0x80,0x00,0x00,
0x7F,0x7D,0x80,0x00,0x00,0xEE,0x7D,0x80,0x00,0x00,0xEC,0xFB,0x80,0x00,0x00,0xCD,
0xFB,0x00,0x00,0x00,0xCE,0xF3,0x00,0x00,0x00,0xC7,0x06,0x00,0x00,0x01,0xC3,0xFE,
0x00,0x00,0x01,0x81,0xFC,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x18,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,
0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\2.bmp",0*/
};
static const unsigned char PROGMEM pic3[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xC0,0x00,0x00,0x00,0xDF,0xE0,0x00,0x00,0x00,
0xF8,0x70,0x00,0x00,0x00,0x77,0xB0,0x00,0x00,0x00,0x67,0x38,0x00,0x00,0x00,0x7A,
0xD8,0x00,0x00,0x00,0x7A,0xDC,0x00,0x00,0x00,0x78,0xDC,0x00,0x00,0x00,0x67,0x3E,
0x1F,0x00,0x3F,0xF7,0x3F,0xFF,0x00,0x3F,0xF8,0x7F,0xFE,0x00,0x00,0x1F,0xE3,0x80,
0x00,0x00,0x0F,0xDD,0x80,0x00,0x00,0x00,0xDD,0x80,0x00,0x00,0x01,0xDD,0x80,0x00,
0x00,0x01,0xBD,0x80,0x00,0x00,0x03,0xBD,0x80,0x00,0x00,0xC7,0x7D,0x80,0x00,0x00,
0xFE,0xFD,0x80,0x00,0x00,0xFD,0xFB,0x80,0x00,0x00,0xD9,0xFB,0x00,0x00,0x01,0xCC,
0xFB,0x00,0x00,0x01,0xCE,0x06,0x00,0x00,0x01,0xC7,0xEE,0x00,0x00,0x01,0x81,0xFC,
0x00,0x00,0x03,0x80,0x7C,0x00,0x00,0x03,0x80,0x18,0x00,0x00,0x01,0x80,0x18,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,
0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\3.bmp",0*/
};
static const unsigned char PROGMEM pic4[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0xFC,0x00,0x00,0x00,0x03,0xFE,0x00,0x00,0x00,0x03,0x87,0x00,0x00,
0x00,0x07,0x7B,0x80,0x00,0x00,0x06,0xFD,0x80,0x00,0x00,0x07,0xB7,0x80,0x00,0x00,
0x07,0x87,0x80,0x00,0x00,0x06,0x39,0x80,0x00,0x00,0x06,0x3B,0x80,0x00,0x00,0x07,
0x07,0x00,0x00,0x00,0x03,0xFE,0x00,0x00,0x03,0xFF,0xFF,0xFF,0xC0,0x03,0xFF,0xFF,
0xFF,0xC0,0x00,0x00,0xC3,0xFC,0x00,0x00,0x01,0xBB,0x00,0x00,0x00,0x01,0xBB,0x00,
0x00,0x00,0x03,0xBB,0x00,0x00,0x00,0x03,0x7B,0x80,0x00,0x00,0x03,0x7B,0x80,0x00,
0x00,0x06,0x7B,0x00,0x00,0x00,0x06,0xFB,0x00,0x00,0x00,0x0C,0xFB,0x00,0x00,0x00,
0x1D,0xFB,0x00,0x00,0x00,0x3B,0xFB,0x00,0x00,0x00,0x3B,0xF7,0x00,0x00,0x00,0x1C,
0xF6,0x00,0x00,0x00,0x1F,0x06,0x00,0x00,0x00,0x37,0xFE,0x00,0x00,0x00,0x71,0xFC,
0x00,0x00,0x00,0x60,0x7C,0x00,0x00,0x00,0xE0,0x18,0x00,0x00,0x00,0xC0,0x18,0x00,
0x00,0x00,0xC0,0x18,0x00,0x00,0x01,0xC0,0x18,0x00,0x00,0x01,0x80,0x18,0x00,0x00,
0x01,0x80,0x18,0x00,0x00,0x03,0x80,0x18,0x00,0x00,0x03,0x00,0x18,0x00,0x00,0x03,
0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\4.bmp",0*/
};
static const unsigned char PROGMEM pic5[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x00,
0x00,0x00,0x03,0xFF,0x00,0x00,0x00,0x03,0xF3,0x80,0x00,0x00,0x01,0xC1,0xC0,0x00,
0x00,0x03,0x9C,0xC0,0x00,0x00,0x03,0x6B,0xE0,0x00,0x00,0x03,0x63,0x60,0x00,0x00,
0x03,0x7F,0xE0,0x00,0x00,0x03,0x1C,0xE0,0x00,0x00,0x03,0xBC,0xC0,0x00,0x00,0x01,
0xC1,0xC0,0x00,0x01,0x80,0xFF,0x80,0x00,0x01,0xFF,0xFF,0xFF,0xC0,0x01,0xFF,0xDF,
0xFF,0xC0,0x00,0x00,0xC3,0x00,0x00,0x00,0x01,0xD3,0x00,0x00,0x00,0x01,0xB7,0x00,
0x00,0x00,0x03,0xB7,0x00,0x00,0x00,0x03,0x77,0x00,0x00,0x00,0x07,0x76,0x00,0x00,
0x00,0x06,0xF6,0x00,0x00,0x00,0x06,0xF6,0x00,0x00,0x00,0x0C,0xF6,0x00,0x00,0x00,
0x0D,0xF6,0x00,0x00,0x00,0x1D,0xF6,0x00,0x00,0x00,0x1B,0xF6,0x00,0x00,0x00,0x1C,
0xF6,0x00,0x00,0x00,0x1F,0x16,0x00,0x00,0x00,0x1F,0xE6,0x00,0x00,0x00,0x19,0xFE,
0x00,0x00,0x00,0x38,0x7E,0x00,0x00,0x00,0x30,0x18,0x00,0x00,0x00,0x30,0x18,0x00,
0x00,0x00,0x70,0x18,0x00,0x00,0x00,0x60,0x18,0x00,0x00,0x00,0x60,0x18,0x00,0x00,
0x00,0xE0,0x18,0x00,0x00,0x00,0xC0,0x18,0x00,0x00,0x00,0xC0,0x18,0x00,0x00,0x01,
0xC0,0x18,0x00,0x00,0x03,0x80,0x38,0x00,0x00,0x03,0x80,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\5.bmp",0*/
};
static const unsigned char PROGMEM pic6[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x03,0xFF,0x80,0x00,0x00,0x03,0xF3,0xC0,0x00,
0x00,0x01,0xC4,0xC0,0x00,0x00,0x01,0x9E,0xE0,0x00,0x00,0x01,0xED,0xE0,0x00,0x00,
0x03,0xE1,0xE0,0x00,0x00,0x03,0x9F,0x60,0x00,0x00,0x03,0x9E,0xE0,0x00,0x00,0x01,
0xC0,0xC0,0x00,0x00,0x00,0xE3,0xC0,0x00,0x01,0xFF,0x7F,0x00,0x40,0x01,0xFF,0xFF,
0xFF,0xC0,0x00,0x7F,0xC3,0xFF,0xC0,0x00,0x00,0xDB,0x00,0x00,0x00,0x01,0x9B,0x00,
0x00,0x00,0x01,0xBB,0x00,0x00,0x00,0x03,0x3B,0x00,0x00,0x00,0x03,0x7B,0x00,0x00,
0x00,0x07,0x73,0x00,0x00,0x00,0x06,0xF7,0x00,0x00,0x00,0x0E,0xF7,0x00,0x00,0x00,
0x0D,0xF7,0x00,0x00,0x00,0x1D,0xF6,0x00,0x00,0x00,0x1B,0xF6,0x00,0x00,0x00,0x19,
0xF6,0x00,0x00,0x00,0x1E,0x36,0x00,0x00,0x00,0x1F,0xC6,0x00,0x00,0x00,0x1B,0xFE,
0x00,0x00,0x00,0x38,0x7E,0x00,0x00,0x00,0x30,0x18,0x00,0x00,0x00,0x70,0x18,0x00,
0x00,0x00,0x60,0x18,0x00,0x00,0x00,0x60,0x18,0x00,0x00,0x00,0xE0,0x18,0x00,0x00,
0x00,0xC0,0x18,0x00,0x00,0x00,0xC0,0x18,0x00,0x00,0x01,0xC0,0x18,0x00,0x00,0x01,
0x80,0x38,0x00,0x00,0x03,0x80,0x38,0x00,0x00,0x03,0x80,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\6.bmp",0*/
};
static const unsigned char PROGMEM pic7[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,
0x00,0x0D,0xFC,0x00,0x00,0x00,0x0F,0xFE,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,
0x0E,0xF3,0x00,0x00,0x00,0x0F,0xFB,0x00,0x00,0x00,0x0F,0x5F,0x00,0x00,0x00,0x0F,
0x1F,0x00,0x00,0x00,0x0D,0xEB,0x00,0x00,0x00,0x0C,0xE3,0x00,0x00,0x06,0x07,0x06,
0x00,0x80,0x07,0xFF,0xFF,0xFF,0xC0,0x07,0xFF,0xFF,0xFF,0xC0,0x00,0x00,0xC3,0x00,
0x00,0x00,0x01,0x9B,0x00,0x00,0x00,0x01,0xBB,0x00,0x00,0x00,0x03,0xBB,0x00,0x00,
0x00,0x03,0x7B,0x80,0x00,0x00,0x03,0x7B,0x80,0x00,0x00,0x06,0xFB,0x80,0x00,0x00,
0x0E,0xFB,0x00,0x00,0x00,0x1D,0xFB,0x00,0x00,0x00,0x1B,0xFB,0x00,0x00,0x00,0x3D,
0xFB,0x00,0x00,0x01,0xFE,0x37,0x00,0x00,0x01,0xE7,0x86,0x00,0x00,0x03,0x83,0xFE,
0x00,0x00,0x03,0x80,0xFC,0x00,0x00,0x03,0x80,0x18,0x00,0x00,0x03,0x80,0x18,0x00,
0x00,0x03,0x80,0x18,0x00,0x00,0x03,0x00,0x18,0x00,0x00,0x03,0x00,0x18,0x00,0x00,
0x03,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\7.bmp",0*/
};
static const unsigned char PROGMEM pic8[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0F,0xC0,0x00,0x00,0x00,0xDF,0xE0,0x00,0x00,0x00,0xF8,0x70,0x00,0x00,0x00,0x67,
0xB8,0x00,0x00,0x00,0x7F,0xD8,0x00,0x00,0x00,0x7A,0xD8,0x00,0x00,0x00,0x78,0xDC,
0x00,0x00,0x00,0x7F,0xDE,0x00,0x00,0x3F,0xE7,0x3F,0xFF,0x00,0x3F,0xF8,0x7F,0xFF,
0x00,0x00,0x3F,0xE3,0x00,0x00,0x00,0x0F,0xDD,0x80,0x00,0x00,0x00,0xDD,0x80,0x00,
0x00,0x01,0xDD,0x80,0x00,0x00,0x01,0xBD,0x80,0x00,0x00,0x03,0xBD,0x80,0x00,0x00,
0xC7,0x7D,0x80,0x00,0x00,0xFE,0xFD,0x80,0x00,0x00,0xFD,0xFB,0x80,0x00,0x00,0xDD,
0xFB,0x00,0x00,0x01,0xCC,0xFB,0x00,0x00,0x01,0xC7,0x06,0x00,0x00,0x01,0xC3,0xFE,
0x00,0x00,0x01,0x81,0xFC,0x00,0x00,0x03,0x80,0x18,0x00,0x00,0x03,0x80,0x18,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,
0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\8.bmp",0*/
};
static const unsigned char PROGMEM pic9[] = {

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x03,0x7F,
0x80,0x00,0x00,0x03,0xE1,0xC0,0x00,0x00,0x00,0xCE,0xE0,0x00,0x00,0x01,0xFF,0x78,
0x00,0x00,0x01,0xB5,0xFC,0x00,0x00,0x01,0xB1,0xEF,0xFF,0x00,0x7F,0xBF,0xFF,0xFF,
0x00,0x7F,0xDE,0x7F,0xF0,0x00,0x00,0xE0,0xE3,0x80,0x00,0x00,0x7F,0xDD,0x80,0x00,
0x00,0x3F,0xDD,0x80,0x00,0x00,0x61,0x9D,0x80,0x00,0x00,0x71,0xBD,0x80,0x00,0x00,
0x7B,0xBD,0x80,0x00,0x00,0x7F,0x7D,0x80,0x00,0x00,0xEE,0xFD,0x80,0x00,0x00,0xCD,
0xFB,0x80,0x00,0x00,0xCC,0xFB,0x00,0x00,0x00,0xC6,0x37,0x00,0x00,0x01,0xC7,0xCE,
0x00,0x00,0x01,0x83,0xFC,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x18,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,
0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x18,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"D:\tools\Arduino\素材\全部GIF图片帧\9.bmp",0*/
};



// static const unsigned char* PROGMEM Chinese[7] =
// {
// BU,Xiang,Xie,Dai,Ma,De,Wo
// }
void setup() {
  Serial.begin(9600);

  // SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
  //display.begin这个函数还有其他的参数，但是这里是C++的语法，提供的库函数里面有默认参数，所以可以不用填。默认即可。
  if (!display.begin(SSD1306_SWITCHCAPVCC)) {
    Serial.println(F("SSD1306 allocation failed"));
    for (;;)
      ;  // Don't proceed, loop forever
  }
  display.clearDisplay();   //清除缓存
  display.setTextColor(1);  //设置字体颜色，对于oled来说，写1是有颜色，0是没颜色
  display.setTextSize(2);   //设置字体大小，默认是1，写入2就是放大1呗，以此类推
  display.setCursor(0, 0);  //设置光标位置，后面填写地址，都是相对于光标的偏移量
}

void loop() {
  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic1,34,64,1);     //显示动画第1帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic2,34,64,1);     //显示动画第2帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic3,34,64,1);     //显示动画第3帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic4,34,64,1);     //显示动画第4帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic5,34,64,1);     //显示动画第5帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic5,34,64,1);     //显示动画第6帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic7,34,64,1);     //显示动画第7帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic8,34,64,1);     //显示动画第8帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);

  display.clearDisplay();   //清除缓存
  display.drawBitmap(0,0,pic9,34,64,1);     //显示动画第9帧
  display.display();        //显示当前缓冲区内的内容
  delay(20);
}
